#include <bits/stdc++.h>
using namespace std;

unordered_map<int, string> numToStr; // 存的是数字本身
string transfer(int x)				 // 数字转换为字符串
{
	if (numToStr.count(x))
	{
		return numToStr[x];
	}
	vector<int> num; // 存的是次数
	int base = 17, backUp = x;
	while (x)
	{
		if (x - pow(2, base) >= 0)
		{
			x -= pow(2, base);
			num.push_back(base);
		}
		--base;
	}
	string res;
	for (int i = 0; i < num.size(); ++i)
	{
		if (num[i] == 0)
		{
			res += "2(0)";
		}
		else if (num[i] == 1)
		{
			res += "2";
		}
		else
		{
			res += "2(" + transfer(num[i]) + ')';
		}
		if (i != num.size() - 1)
		{
			res += '+';
		}
	}
	numToStr[backUp] = res;
	return res;
}
int main()
{
	ios::sync_with_stdio(false);
	cin.tie(nullptr);
	cout.tie(nullptr);
	int n;
	cin >> n;
	numToStr[1] = "2(0)", numToStr[2] = "2";
	cout << transfer(n);
	return 0;
}
